<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
        <meta name="format-detection" content="telephone=no" />
        <title>商品详情</title>
        <link href="../css/framework7.material.min.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
        <link rel="stylesheet" type="text/css" href="../css/aui.css" />
        <!-- <link rel="stylesheet" type="text/css" href="../css/style.css" /> -->
        <style>
            body{
                font-size: 14px;
            }
            .footBtn{
                border-radius:  0;
                font-size: 12px;
                font-weight: 400;
            }
            footer .aui-btn-block{
                line-height: 55px;
                height: 55px;
                padding: 0 !important;
            }
            footer.aui-nav{
                z-index: 99999;
            }

            .haderTitle{
                width:30%;
                margin:0 auto;
            }
            header.aui-bar{
                background: #fff;
            }
            .aui-nav .aui-bar-tab .active .aui-iconfont, .aui-nav .aui-bar-tab .active p{
                color:#327afa !important;
            }
            .active{
                color:#327afa !important;
            }
            .aui-tab-nav li.active {
                color: #327afa;
                border-bottom: 2px #327afa solid;
            }
            .aui-bar .aui-iconfont{
                color:#000;
            }
            .isShoucang {
                color:#e74c3c !important;
            }
            
        </style>
    </head>
    <body>
        <header class="aui-bar aui-bar-nav aui-border-b">
            <div class="aui-pull-left aui-iconfont aui-icon-left icon-left-coler" tapmode onclick="closeWin()"></div>
            <ul class="aui-tab-nav aui-border-t haderTitle">
                <li class="active" data-type="1" tapmode onclick="changeCheck(this)">
                    商品
                </li>
                <li data-type="2" tapmode onclick="changeCheck(this)">
                    详情
                </li>
            </ul>
        </header>
        <footer class="aui-nav" id="aui-footer">

            <ul class="aui-bar-tab menuUl">
                <li  id="tabbar1" tapmode onclick="openToTwo('my/myShop_win')">
                    <span class="aui-iconfont aui-icon-home"></span>
                    <p>
                        首页
                    </p>
                </li>
                <li id="tabbar2" tapmode onclick="kefu()">
                    <span class="aui-iconfont aui-icon-service   "></span>
                    <p>
                        客服
                    </p>
                </li>
                <li id="tabbar3"   tapmode onclick="shoucang(this)">
                        <span class="aui-iconfont aui-icon-favor"></span>
                        <p>
                            收藏
                        </p>
                </li>
                <li id="tabbar4" tapmode onclick="showPick()">
                    <a href="#" data-picker=".picker-1" class="open-picker">
                      <div class="aui-btn aui-btn-warning aui-btn-block footBtn">加入进货单</div>
                    </a>
                </li>
                <li id="tabbar5" tapmode onclick="">
                    <div class="aui-btn aui-btn-danger aui-btn-block footBtn">立即订购</div>
                </li>
            </ul>
        </footer>
        
    </body>
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/common.js"></script>
    <script type="text/javascript" src="../script/jquery-1.11.3.js"></script>
    <script type="text/javascript" src="../script/mui.min.js"></script>
    <script src="../script/framework7.min.js"></script>
    <script type="text/javascript">
        var myApp = new Framework7(); 
        apiready = function() {
            api.parseTapmode();
            var mobile = api.pageParam.mobile;
            var header = $api.dom('header');
            var footer = $api.dom('footer');
            //$api.fixStatusBar(header);
            api.setStatusBarStyle({
                  style : 'light'
            });
            var header_h = $api.offset(header).h;
            var footer_h = $api.offset(footer).h;
            var body_h = $api.offset($api.dom('body')).h - header_h-footer_h;
            api.openFrame({
                name : 'proInfo_frm',
                url : 'proInfo_frm.html',
                rect : {
                    x : 0,
                    y : header_h,
                    w : 'auto',
                    h : body_h
                },
                pageParam : {
                    mobile : mobile
                },
                bounces : false,
                vScrollBarEnabled : false,
                hScrollBarEnabled : false
            });
        }
        function shoucang(obj){
            $(obj).find("span").eq(0).addClass("isShoucang");
            $(obj).find("p").eq(0).text("已收藏");
            api.toast({
                msg : '收藏成功',
                duration : 2000,
                location : 'center'
            });
        }
        //为了在下面的热门类别可以通用，单独出来
        function changeCheck(obj){
            $(obj).parent().find("li").removeClass("active");
            $(obj).addClass("active");
        }
        function showPick(){
            api.execScript({
                frameName:'proInfo_frm',
                script:'showPick()'
            })
        }
    </script>
</html>
